import { req } from '@/api/base/BaseApi'

export function download(id) {
  return req(downloadImgUrl() + id, 'get')
}

export function uploadImgUrl() {
  return '/api/sys/auth/file/upload/mall/image'
}

export function downloadImgUrl() {
  return '/api/sys/open/file/download/'
}

export function deleteImgUrl(id) {
  return req('/api/sys/auth/file/' + id, 'delete')
}
